package com.gitee.huanminabc.fastboot.web.classload;

import com.gitee.huanminabc.fastboot.annotation.container.RestController;
import com.gitee.huanminabc.fastboot.context.AppContext;
import com.gitee.huanminabc.fastboot.load.classload.ClassLoadIntercept;

/**
 * 简要描述
 *
 * @Author: huanmin
 * @Date: 2025/4/13 00:38
 * @Version: 1.0
 * @Description: 文件作用详细描述....
 */
public class RestControllerClassLoad  implements ClassLoadIntercept {
    @Override
    public void peek(Class<?> clazz) throws Exception {
        RestController restController = clazz.getAnnotation(RestController.class);
        if (restController != null) {
            //如果是RestController类,那么就需要单独处理
            AppContext.allControllerClasses.add(clazz);
        }
    }
}
